import { NgModule } from "@angular/core";
import { RouterModule } from "@angular/router";
import { TestComponentRenderer } from "@angular/core/testing";
import { EquipmentHomeComponent } from "./equipment-home/equipment-home.component";
import { EquipmentCheckItemComponent } from "./equipment-check-item/equipment-check-item.component";
import { EquipmentCheckRecordComponent } from "./equipment-check-record/equipment-check-record.component";
import { EquipmentCheckDetailComponent } from "./equipment-check-detail/equipment-check-detail.component";


export const routes = [
    {
        path: '',
        component: EquipmentHomeComponent,
        children: [
			{ path: '', redirectTo: 'checkItem', pathMatch: 'full' },
            { path: 'checkItem', component: EquipmentCheckItemComponent },
            { path: 'checkRecord', component: EquipmentCheckRecordComponent },
            { path: 'checkDetail', component: EquipmentCheckDetailComponent }
		]
    },
    
]

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
  })
  export class EquipmentRoutesModule { }